package com.love.netty.core.packet.request;

import com.love.netty.core.packet.Packet;
import lombok.Data;

import static com.love.netty.core.interfaces.Command.GROUP_MESSAGE_REQUEST;

/**
 * @ClassName: GroupMessageRequestPacket
 * @Description:
 * @Author: wuj
 * @Date: 2021-06-25 16:23
 **/
@Data
public class GroupMessageRequestPacket extends Packet {


    private String message;

    private String toGroupId;

    public GroupMessageRequestPacket(String toGroupId, String message) {
        this.toGroupId = toGroupId;
        this.message = message;
    }



    @Override
    public Byte getCommand() {
        return GROUP_MESSAGE_REQUEST;
    }
}
